import Vue from 'vue'
import Router from 'vue-router'
import phonelogin from '@/components/phonelogin'
import emaillogin from '@/components/emaillogin'
import userDetail from '@/components/userDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/phonelogin"
    },
    {
      path: '/phonelogin',
      name: 'phonelogin',
      component: phonelogin
    },
    {
      path: '/emaillogin',
      name: 'emaillogin',
      component: emaillogin
    },
    {
      path: '/userDetail',
      name: 'userDetail',
      component: userDetail
    },
  ],
  mode:"history"
})
